﻿<UserControl x:Class="VAdvantage.Apps.AForms.VCharge"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             
    mc:Ignorable="d"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:my1="clr-namespace:Groupbox;assembly=Groupbox" xmlns:my="clr-namespace:SLControls.Controls;assembly=SLControls" >

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="25*" />
            <ColumnDefinition Width="25*" />
        </Grid.ColumnDefinitions>
        <my1:GroupBox Grid.RowSpan="1" Grid.ColumnSpan="3" Margin="0,0,0,0" Name="groupBox1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
            <Grid HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="grid1" VerticalAlignment="Stretch">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="25*" />
                    <ColumnDefinition Width="25*" />
                </Grid.ColumnDefinitions>
                <my:VLabel Name="vlblSearchKey"  Grid.Row="0" Grid.Column="0" Content="SearchKey"  HorizontalAlignment="Right" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="25" />
                <my:VLabel Name="vlblName"  Grid.Row="1" Grid.Column="0" Content="Name"  HorizontalAlignment="Right" Margin="5,5,5,5" VerticalAlignment="Center" Width="Auto" Height="25" />
                <my:VCheckBox Name="vchkExpense"  Grid.Row="0" Grid.Column="2" Content="Expense" HorizontalAlignment="Left" Margin="5,5,5,5"  VerticalAlignment="Center"  />
                <my:VTextBox x:Name="vtxtSearchKey" Grid.Row="0" Grid.Column="1"  HorizontalAlignment="Stretch" Margin="5,5,5,5"  VerticalAlignment="Center" Height="Auto" TabIndex="0" />
                <my:VTextBox x:Name="vtxtName" Grid.Row="1" Grid.Column="1"  HorizontalAlignment="Stretch" Margin="5,5,5,5"  VerticalAlignment="Center" Height="Auto" TabIndex="1" />
                <my:VButton Grid.Row="1" Grid.Column="2" Content="Create" x:Name="vbtnCreateCharge" Margin="5,5,5,5"  HorizontalAlignment="Stretch" Height="25" Click="vbtnCreateCharge_Click" TabIndex="2" />
            </Grid>
        </my1:GroupBox>

        <my1:GroupBox Grid.Row="1" Grid.RowSpan="1" Grid.ColumnSpan="3" Margin="0,0,0,0" Name="groupBox2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
            <Grid HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="grid2" VerticalAlignment="Stretch">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="25*" />
                    <ColumnDefinition Width="25*" />
                </Grid.ColumnDefinitions>
                <my:VDataGrid Grid.Row="0" AutoGenerateColumns="False" Grid.ColumnSpan="3"  Height="Auto" HorizontalAlignment="Stretch" Margin="5,5,5,5" x:Name="vdgvCharge" VerticalAlignment="Stretch" Width="Auto"  />
                <my:VButton Grid.Row="1" Grid.Column="2" x:Name="vbtnAccount" Content="Create"  Margin="5,5,5,5"  HorizontalAlignment="Stretch" Height="25" Click="vbtnAccount_Click" TabIndex="3" />
                <my:VCheckBox Name="vchkSelectAll" Grid.Row="1" Grid.Column="1" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Stretch" Content="Select All" Checked="vchkSelectAll_Checked" Unchecked="vchkSelectAll_Unchecked" Visibility="Collapsed"/>
            </Grid>
        </my1:GroupBox>

        <my:VButton Grid.Row="2" Grid.Column="3" x:Name="vbtnOK" Margin="5,5,5,5"   HorizontalAlignment="Right" Height="50" Width="50" Click="vbtnOK_Click">
            <StackPanel HorizontalAlignment="Stretch"  Height="Auto" VerticalAlignment="Stretch" Orientation="Horizontal">
                <Image Name="RightUp"   HorizontalAlignment="Left" VerticalAlignment="Center" Source="/VAdvantage;component/Images/right_up.png"   />
            </StackPanel>
        </my:VButton>
        <Grid x:Name="busyWindow" Grid.RowSpan="6" Grid.ColumnSpan="5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity=".7" ShowGridLines="True" Background="LightGray" Visibility="Visible"  MouseLeftButtonDown="busyWindow_MouseLeftButtonDown" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <ProgressBar Height="20" HorizontalAlignment="Center" Grid.Column="0" IsIndeterminate="True"  Name="progressBar1" VerticalAlignment="Center" Width="250" />
            <!--<TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>-->
        </Grid>
    </Grid>
</UserControl>
